package cn.tedu.shoot;

import java.io.InputStream;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;

public class Music implements Runnable{
	Player player;
	InputStream in;

	public Music(InputStream inputStream) {
		in = inputStream;
	}

	@Override
	public void run() {
		try {
			player = new Player(in);
			player.play();
		} catch (JavaLayerException e) {
			e.printStackTrace();
		}

	}
}